package com.zhiyou100.review.day005.file.test;

import java.io.IOException;
import java.nio.file.Path;
import java.nio.file.Paths;

/**
 * @packageName: FileReaderTst
 * @className: com.zhiyou100.review.day005.file.test
 * @Description: TODO 测试类
 * @author: yang
 * @date: 6/13/20
 */
public class FileReaderTst {
    public static void main(String[] args) throws IOException {
        Path path = Paths.get("/Users/yang/Desktop/test/a.txt");
        // 读取一个文件，文件内容是 hello world
        BaseFileReader lowercaseFileReader = new LowercaseFileReader(path);
        BaseFileReader uppercaseFileReader = new UppercaseFileReader(path);
        System.out.println(lowercaseFileReader.redFiles());
        System.out.println(uppercaseFileReader.redFiles());
    }
}
